import { axiosInstance } from '@/api/config';

// 删除
export const deleteTodo = (param = {}) => {
  return axiosInstance.post('/api/deleteTodo', param);
};
// 列表
export const todoList = (param = {}) => {
  return axiosInstance.post('/api/todoList', param);
};
// 详情
export const todoDetail = (param = {}) => {
  return axiosInstance.post('/api/todoDetail', param);
};
// 新增
export const addTodo = (param = {}) => {
  return axiosInstance.post('/api/addTodo', param);
};
// 修改
export const editTodo = (param = {}) => {
  return axiosInstance.post('/api/editTodo', param);
};
